package com.njtoyo.taxi.admin.rest.wrapper.marketing.seckill;

import com.njtoyo.taxi.admin.mapper.master.enums.ActivitySeckillPrizeCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("修改秒杀活动奖品")
public class UpdatePrizeWrapper {
    @ApiModelProperty(value = "奖品名称（最大字符限制14个）")
    @NotBlank(message = "奖品名称不能为空")
    private String name;

    @ApiModelProperty(value = "奖品图标")
    private String imageUrl;

    @ApiModelProperty(value = "奖品说明")
    private String description;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "奖品类型不能为空")
    private ActivitySeckillPrizeCategory category;

    @ApiModelProperty(value = "奖品详情")
    @NotNull(message = "奖品详情不能为空")
    @Size(min = 1)
    private List<Long> details;

    @ApiModelProperty(value = "价值")
    @NotNull(message = "价值不能为空")
    private BigDecimal values;

    @ApiModelProperty(value = "是否线上")
    @NotNull(message = "是否线上不能为空")
    private Boolean isOnline;
}
